<%--
  Created by IntelliJ IDEA.
  User: You’reTheBest
  Date: 2021/12/3
  Time: 下午 3:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>Title</title>
  <link rel="stylesheet" href="static/css/login.css">
</head>
<body>
<div align="center">

  <div id="centers">
    <p style="color: #9D9D9D" id="houTai">————&nbsp&nbsp&nbsp<b>后台管理系统&nbsp&nbsp&nbsp</b>————</p>
    <form action="EmployeeController/login" style="line-height:75px" method="post" onsubmit="return act()">
      <input type="text" placeholder="请输入用户名" name="NAME"><br><p></p>
      <input type="password" placeholder="请输入密码" name="PASSWORD"><br>
      <button type="submit" id="submits">登录</button>
      <button type="button">重填</button>
    </form>
    <p class="xian" style="color: #E7E7E7">————————————————————————</p>
    <p class="xian" style="color: #8FB1CE">©2021-2031 hxsuoyou</p>
  </div>

</div>

<script type="text/javascript" src="static/js/jquery-1.12.4.js"></script>
<script type="text/javascript">
  function act() {
    var names=$("[name=NAME]").val().trim()             //获取账户
    var passwords=$("[name=PASSWORD]").val().trim()     //获取密码
    if(names==""){
      alert("用户名不能为空")
      return false
    }
    if (passwords==""){
      alert("密码不能为空")
      return false
    }
  }
</script>
</body>
</html>

